<template>
  <div class="crumb">
    <template v-for="(item, index) in data">
      <a href="#" :key="item.id">{{ item.name }}</a>
      <template v-if="index < data.length - 1"> / </template>
    </template>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Array,
      default: [],
    },
  },
};
</script>

<style lang="less" scoped>
.crumb {
  margin-bottom: 10px;
  a {
    text-decoration: none;
    color: black;
  }
}
</style>